<?php

namespace app\api\validation;

class Subject extends \think\Validate
{
    protected $rule = [
        'title' => 'require',
        'category_id' => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'category_id.require' => '分类不能为空',
        'content.require' => '内容不能为空',
    ];
}